<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/adminjsp/taglibs.jsp"%>
<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>人人自由任务后台管理系统</title>
		<link rel="stylesheet" href="../../styles/adminCss/backstage.css">
	</head>
	<body>
		<jsp:include page="top.jsp"></jsp:include>
		<div class="adminMain">
			<div class="adminLeft">
				<jsp:include page="left.jsp"></jsp:include>
			</div>
			<div class="adminRight">
			    <div class="content clearfix">
			        <div class="main">
			        
			        <div class="cont">
		                <div class="title">新闻列表</div>
		                <div class="details">
		                    <!--表格-->
		                    <table class="table" cellspacing="0" cellpadding="0">
		                        <thead>
		                            <tr>
		                                <th width="15%">新闻编号</th>
		                                <th width="40%">新闻名称</th>
		                                <th width="15%">发布时间</th>
		                                <th>操作</th>
		                            </tr>
		                        </thead>
		                        <tbody>
		                        	<c:forEach var="data" items="${newsInfList}" varStatus="status">
		                            <tr>
		                                <!--这里的id和for里面的c1 需要循环出来-->
		                                <td><input type="checkbox" id="c1" class="check"><label for="c1" class="label">${data.newsId}</label></td>
		                                <td>${data.newsTitle}</td>
		                                <td>${data.newsDate}</td>
		                                <td align="center">
			                                <a href="modifyNews?newsId=${data.newsId}" class="btn">修改</a>
			                                <a href="deleteNews?newsId=${data.newsId}"  onClick="return window.confirm('确认要删除选中的信息')" class="btn">删除</a>
		                                </td>
		                            </tr>
		                           </c:forEach>
		                        </tbody>
		                    </table>
		                </div>
		            </div>
			        <div class="fenye"><a href="">上一页</a>&nbsp;|&nbsp;<a href="">下一页</a></div>
			        </div>
			     </div>
			 </div>
		</div>
	</body>
</html>